package org.csu.onlineedubackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Course student comment entity representing a student comment on a course
 * This is a backup implementation that exactly matches the database schema
 */
@Data
@TableName("course_comment")
public class CourseStudentComment {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("course_id")
    private Long courseId;
    
    @TableField("student_id")
    private Long studentId;
    
    private String content;
    
    private Integer stars;
    
    @TableField("like_count")
    private Integer likeCount;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    private Integer status;
} 